package com.oristand.printer.address.model;

import javafx.beans.property.StringProperty;

/**
 * @author chenkailiang
 * @date 2020/9/18
 */
public class PrinterConfiguration {

    private final StringProperty connectionType;
    private final StringProperty printerName;
    private final StringProperty ipAddress;
    private final StringProperty port;

    public PrinterConfiguration(StringProperty connectionType,StringProperty printerName, StringProperty ipAddress, StringProperty port) {
        this.connectionType = connectionType;
        this.printerName = printerName;
        this.ipAddress = ipAddress;
        this.port = port;
    }

    public PrinterConfiguration(){
        this(null,null,null,null);
    }

    public String getConnectionType() {
        return connectionType.get();
    }

    public StringProperty connectionTypeProperty() {
        return connectionType;
    }

    public void setConnectionType(String connectionType) {
        this.connectionType.set(connectionType);
    }

    public String getPrinterName() {
        return printerName.get();
    }

    public StringProperty printerNameProperty() {
        return printerName;
    }

    public void setPrinterName(String printerName) {
        this.printerName.set(printerName);
    }

    public String getIpAddress() {
        return ipAddress.get();
    }

    public StringProperty ipAddressProperty() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress.set(ipAddress);
    }

    public String getPort() {
        return port.get();
    }

    public StringProperty portProperty() {
        return port;
    }

    public void setPort(String port) {
        this.port.set(port);
    }
}
